package com.czk.spring;

import java.util.Objects;

/**
 * bean的后置处理器
 * @Author:ChenZhangKun
 * @Date: 2021/3/31 16:56
 */
public interface BeanPostProcessor {
    /**
     * 初始化前的逻辑
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessBeforeInitialization(Object bean,String beanName);

    /**
     * 初始化后的逻辑
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessAfterInitialization(Object bean,String beanName);
}
